package icu.groot.alan.hotel.enums;


import java.util.ArrayList;
import java.util.List;

public enum OrderStatusEnum {
    UNPAID("未支付"), REVERSE("已预定"), REFUND("已退款"), OCCUPANCY("已入住"), FINISH("已结束");
    private String status;

    OrderStatusEnum(String status){
        this.status = status;
    }

    @Override
    public String toString() {
        return this.status;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public static List<String> toList(){
        List<String> list = new ArrayList<>();
        list.add(OrderStatusEnum.UNPAID.getStatus());
        list.add(OrderStatusEnum.REVERSE.getStatus());
        list.add(OrderStatusEnum.OCCUPANCY.getStatus());
        list.add(OrderStatusEnum.FINISH.getStatus());
        return list;
    }
}
